package com.sasis.model;
// Generated 2007-8-1 18:07:12 by Hibernate Tools 3.1.0.beta4

import java.sql.Date;
import java.sql.Timestamp;


/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="VIP_SERVICE_SENDCAR"
 *     
 */

public class VipServiceSendcar extends com.sasis.model.BaseObject implements java.io.Serializable {


    // Fields    

    private Integer id;
    private Integer vipServiceSheetId;
    private Timestamp sentCarTime;
    private String sentCarLocator;
    private String sentCarDriver;
    private String sentCarLicense;
    private String sentCarOrigin;
    private String sentCarEnd;
    private String sentCarLinkman;
    private Integer sentCarOperator;
    private Timestamp sentCarOperateDate;


    // Constructors

    /** default constructor */
    public VipServiceSendcar() {
    }

    
    /** full constructor */
    public VipServiceSendcar(Integer vipServiceSheetId, Timestamp sentCarTime, String sentCarLocator, String sentCarDriver, String sentCarLicense, String sentCarOrigin, String sentCarEnd, String sentCarLinkman, Integer sentCarOperator, Timestamp sentCarOperateDate) {
        this.vipServiceSheetId = vipServiceSheetId;
        this.sentCarTime = sentCarTime;
        this.sentCarLocator = sentCarLocator;
        this.sentCarDriver = sentCarDriver;
        this.sentCarLicense = sentCarLicense;
        this.sentCarOrigin = sentCarOrigin;
        this.sentCarEnd = sentCarEnd;
        this.sentCarLinkman = sentCarLinkman;
        this.sentCarOperator = sentCarOperator;
        this.sentCarOperateDate = sentCarOperateDate;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="ID"
     *         
     */

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    /**       
     *      *            @hibernate.property
     *             column="VIP_SERVICE_SHEET_ID"
     *             length="22"
     *         
     */

    public Integer getVipServiceSheetId() {
        return this.vipServiceSheetId;
    }
    
    public void setVipServiceSheetId(Integer vipServiceSheetId) {
        this.vipServiceSheetId = vipServiceSheetId;
    }
    /**       
     *      *            @hibernate.property
     *             column="SENT_CAR_TIME"
     *             length="7"
     *         
     */

    public Timestamp getSentCarTime() {
        return this.sentCarTime;
    }
    
    public void setSentCarTime(Timestamp sentCarTime) {
        this.sentCarTime = sentCarTime;
    }
    /**       
     *      *            @hibernate.property
     *             column="SENT_CAR_LOCATOR"
     *             length="256"
     *         
     */

    public String getSentCarLocator() {
        return this.sentCarLocator;
    }
    
    public void setSentCarLocator(String sentCarLocator) {
        this.sentCarLocator = sentCarLocator;
    }
    /**       
     *      *            @hibernate.property
     *             column="SENT_CAR_DRIVER"
     *             length="256"
     *         
     */

    public String getSentCarDriver() {
        return this.sentCarDriver;
    }
    
    public void setSentCarDriver(String sentCarDriver) {
        this.sentCarDriver = sentCarDriver;
    }
    /**       
     *      *            @hibernate.property
     *             column="SENT_CAR_LICENSE"
     *             length="256"
     *         
     */

    public String getSentCarLicense() {
        return this.sentCarLicense;
    }
    
    public void setSentCarLicense(String sentCarLicense) {
        this.sentCarLicense = sentCarLicense;
    }
    /**       
     *      *            @hibernate.property
     *             column="SENT_CAR_ORIGIN"
     *             length="256"
     *         
     */

    public String getSentCarOrigin() {
        return this.sentCarOrigin;
    }
    
    public void setSentCarOrigin(String sentCarOrigin) {
        this.sentCarOrigin = sentCarOrigin;
    }
    /**       
     *      *            @hibernate.property
     *             column="SENT_CAR_END"
     *             length="256"
     *         
     */

    public String getSentCarEnd() {
        return this.sentCarEnd;
    }
    
    public void setSentCarEnd(String sentCarEnd) {
        this.sentCarEnd = sentCarEnd;
    }
    /**       
     *      *            @hibernate.property
     *             column="SENT_CAR_LINKMAN"
     *             length="256"
     *         
     */

    public String getSentCarLinkman() {
        return this.sentCarLinkman;
    }
    
    public void setSentCarLinkman(String sentCarLinkman) {
        this.sentCarLinkman = sentCarLinkman;
    }
    /**       
     *      *            @hibernate.property
     *             column="SENT_CAR_OPERATOR"
     *             length="22"
     *         
     */

    public Integer getSentCarOperator() {
        return this.sentCarOperator;
    }
    
    public void setSentCarOperator(Integer sentCarOperator) {
        this.sentCarOperator = sentCarOperator;
    }
    /**       
     *      *            @hibernate.property
     *             column="SENT_CAR_OPERATE_DATE"
     *             length="7"
     *         
     */

    public Timestamp getSentCarOperateDate() {
        return this.sentCarOperateDate;
    }
    
    public void setSentCarOperateDate(Timestamp sentCarOperateDate) {
        this.sentCarOperateDate = sentCarOperateDate;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("vipServiceSheetId").append("='").append(getVipServiceSheetId()).append("' ");			
      buffer.append("sentCarTime").append("='").append(getSentCarTime()).append("' ");			
      buffer.append("sentCarLocator").append("='").append(getSentCarLocator()).append("' ");			
      buffer.append("sentCarDriver").append("='").append(getSentCarDriver()).append("' ");			
      buffer.append("sentCarLicense").append("='").append(getSentCarLicense()).append("' ");			
      buffer.append("sentCarOrigin").append("='").append(getSentCarOrigin()).append("' ");			
      buffer.append("sentCarEnd").append("='").append(getSentCarEnd()).append("' ");			
      buffer.append("sentCarLinkman").append("='").append(getSentCarLinkman()).append("' ");			
      buffer.append("sentCarOperator").append("='").append(getSentCarOperator()).append("' ");			
      buffer.append("sentCarOperateDate").append("='").append(getSentCarOperateDate()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof VipServiceSendcar) ) return false;
		 VipServiceSendcar castOther = ( VipServiceSendcar ) other; 
         
		 return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )
 && ( (this.getVipServiceSheetId()==castOther.getVipServiceSheetId()) || ( this.getVipServiceSheetId()!=null && castOther.getVipServiceSheetId()!=null && this.getVipServiceSheetId().equals(castOther.getVipServiceSheetId()) ) )
 && ( (this.getSentCarTime()==castOther.getSentCarTime()) || ( this.getSentCarTime()!=null && castOther.getSentCarTime()!=null && this.getSentCarTime().equals(castOther.getSentCarTime()) ) )
 && ( (this.getSentCarLocator()==castOther.getSentCarLocator()) || ( this.getSentCarLocator()!=null && castOther.getSentCarLocator()!=null && this.getSentCarLocator().equals(castOther.getSentCarLocator()) ) )
 && ( (this.getSentCarDriver()==castOther.getSentCarDriver()) || ( this.getSentCarDriver()!=null && castOther.getSentCarDriver()!=null && this.getSentCarDriver().equals(castOther.getSentCarDriver()) ) )
 && ( (this.getSentCarLicense()==castOther.getSentCarLicense()) || ( this.getSentCarLicense()!=null && castOther.getSentCarLicense()!=null && this.getSentCarLicense().equals(castOther.getSentCarLicense()) ) )
 && ( (this.getSentCarOrigin()==castOther.getSentCarOrigin()) || ( this.getSentCarOrigin()!=null && castOther.getSentCarOrigin()!=null && this.getSentCarOrigin().equals(castOther.getSentCarOrigin()) ) )
 && ( (this.getSentCarEnd()==castOther.getSentCarEnd()) || ( this.getSentCarEnd()!=null && castOther.getSentCarEnd()!=null && this.getSentCarEnd().equals(castOther.getSentCarEnd()) ) )
 && ( (this.getSentCarLinkman()==castOther.getSentCarLinkman()) || ( this.getSentCarLinkman()!=null && castOther.getSentCarLinkman()!=null && this.getSentCarLinkman().equals(castOther.getSentCarLinkman()) ) )
 && ( (this.getSentCarOperator()==castOther.getSentCarOperator()) || ( this.getSentCarOperator()!=null && castOther.getSentCarOperator()!=null && this.getSentCarOperator().equals(castOther.getSentCarOperator()) ) )
 && ( (this.getSentCarOperateDate()==castOther.getSentCarOperateDate()) || ( this.getSentCarOperateDate()!=null && castOther.getSentCarOperateDate()!=null && this.getSentCarOperateDate().equals(castOther.getSentCarOperateDate()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
         result = 37 * result + ( getVipServiceSheetId() == null ? 0 : this.getVipServiceSheetId().hashCode() );
         result = 37 * result + ( getSentCarTime() == null ? 0 : this.getSentCarTime().hashCode() );
         result = 37 * result + ( getSentCarLocator() == null ? 0 : this.getSentCarLocator().hashCode() );
         result = 37 * result + ( getSentCarDriver() == null ? 0 : this.getSentCarDriver().hashCode() );
         result = 37 * result + ( getSentCarLicense() == null ? 0 : this.getSentCarLicense().hashCode() );
         result = 37 * result + ( getSentCarOrigin() == null ? 0 : this.getSentCarOrigin().hashCode() );
         result = 37 * result + ( getSentCarEnd() == null ? 0 : this.getSentCarEnd().hashCode() );
         result = 37 * result + ( getSentCarLinkman() == null ? 0 : this.getSentCarLinkman().hashCode() );
         result = 37 * result + ( getSentCarOperator() == null ? 0 : this.getSentCarOperator().hashCode() );
         result = 37 * result + ( getSentCarOperateDate() == null ? 0 : this.getSentCarOperateDate().hashCode() );
         return result;
   }   





}
